package com.hackintosh.strategy.eating;

/**
 * @description：
 * @author：twislyn
 * @date：Created in 2021/05/17
 * @modified By：
 * @version: 1.0
 */
public class CrabCookingStrategy {

    public static void main(String[] args) {
        CrabCooking crabCooking = new SteamedCrabs();
        Kitchen kitchen = new Kitchen();
        kitchen.setStrategy(crabCooking);
        kitchen.cookingMethod();

        crabCooking = new BraisedCrabs();
        kitchen.setStrategy(crabCooking);
        kitchen.cookingMethod();
    }
}
